package tgc.edu.exam.custom;

import java.util.HashMap;

import org.springframework.data.domain.Page;

public class EasyuiUtils {
	
	@SuppressWarnings("rawtypes")
	public static HashMap<String, Object> buildDataGridResult(Page page){
		HashMap<String, Object> result=new HashMap<>();
		result.put("total", page.getTotalElements());
		result.put("rows", page.getContent());
		return result;
	}
}
